<?php defined('IN_DC') or exit('Access Denied'); ?><?php include mtpl('header'); ?>

<!--- search start --->
  <div class="search">
    <form action="index.php?file=search<?php echo $cityparam;?>" method="POST">
    <input name="q" type="text" size="18" />
    <input type="submit" name="dosubmit" value="提交" />
    </form>
    <p>热门：
    <?php if(is_array($hotkeys)) foreach($hotkeys AS $r) { ?>
        <a href="index.php?file=search&q=<?php echo urlencode($r);?>"><?php echo $r;?></a> 
    <?php } ?>
    </p>
  </div>
  <div class="clear"></div>
<!--- search end --->


<?php include mtpl('cats'); ?>
  
  <h4>热门商家</h4>
<ul class="textList">
<?php if(is_array($hotshop)) foreach($hotshop AS $r) { ?>
    <li>· <a href="index.php?file=shopshow&amp;id=<?php echo $r['id'];?><?php echo $cityparam;?>"><?php echo m_strip($r['shopname']);?><?php echo m_subname($r[subname]);?> <?php echo m_discount($r['discount']);?></a></li>
<?php } ?>
    <li>&nbsp;&nbsp;<a href="?file=shoplist<?php echo $cityparam;?>">更多>></a></li>
</ul>
  <div class="clear"></div>
  
<h4>热门优惠</h4>
<ul class="textList">
<?php if(is_array($newdiscount)) foreach($newdiscount AS $r) { ?>
    <li>· <a href="index.php?file=show&amp;id=<?php echo $r['contentid'];?><?php echo $cityparam;?>"><?php echo m_strip($r['title']);?></a></li>
<?php } ?>
    <li>&nbsp;&nbsp;<a href="?file=list&catcode=13<?php echo $cityparam;?>">更多>></a></li>
</ul>

<?php include mtpl('footer'); ?>